package com.zhouxiaoge.职责链模式.one;

import java.util.UUID;

/**
 * @author 周小哥 gqzmy@163.com 2022/10/8 13:22
 */

public class ClientTest {
    public static void main(String[] args) {
        ApplyRequest applyRequest = new ApplyRequest(100f, UUID.randomUUID().toString());

        DeanHandler deanHandler = new DeanHandler("院长");
        ViceSchoolMasterHandler viceSchoolMasterHandler = new ViceSchoolMasterHandler("副校长");
        SchoolMasterHandler schoolMasterHandler = new SchoolMasterHandler("校长");

        deanHandler.setHandler(viceSchoolMasterHandler);
        viceSchoolMasterHandler.setHandler(schoolMasterHandler);
        schoolMasterHandler.setHandler(deanHandler);

        deanHandler.processRequest(applyRequest);
    }
}
